//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package com.orphan.supplier.vo;

import com.orphan.supplier.po.Tender;
import java.util.Date;

public class TenderVO {
    private String tenderCallNumber;
    private double price;
    private int providedAmount;
    private int unprovidedAmount;
    private String tenderCallTitle;
    private Date startTime;
    private Date endTime;
    private String status;
    private String goodsName;

    public TenderVO(Tender tender) {
        this.makeTenderVO(tender);
    }

    private void makeTenderVO(Tender tender) {
        this.tenderCallNumber = tender.getCall().getNumber();
        this.price = tender.getPrice();
        this.providedAmount = tender.getProvidedAmount();
        this.unprovidedAmount = tender.getUnprovidedAmount();
        this.tenderCallTitle = tender.getCall().getTitle();
        this.startTime = tender.getCall().getStart();
        this.endTime = tender.getCall().getEnd();
        this.status = String.valueOf(tender.getStatus());
        this.goodsName = tender.getGoods().getName();
    }

    public TenderVO() {
    }

    public String getTenderCallNumber() {
        return this.tenderCallNumber;
    }

    public double getPrice() {
        return this.price;
    }

    public int getProvidedAmount() {
        return this.providedAmount;
    }

    public int getUnprovidedAmount() {
        return this.unprovidedAmount;
    }

    public String getTenderCallTitle() {
        return this.tenderCallTitle;
    }

    public Date getStartTime() {
        return this.startTime;
    }

    public Date getEndTime() {
        return this.endTime;
    }

    public String getStatus() {
        return this.status;
    }

    public String getGoodsName() {
        return this.goodsName;
    }

    public void setTenderCallNumber(String tenderCallNumber) {
        this.tenderCallNumber = tenderCallNumber;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public void setProvidedAmount(int providedAmount) {
        this.providedAmount = providedAmount;
    }

    public void setUnprovidedAmount(int unprovidedAmount) {
        this.unprovidedAmount = unprovidedAmount;
    }

    public void setTenderCallTitle(String tenderCallTitle) {
        this.tenderCallTitle = tenderCallTitle;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public boolean equals(Object o) {
        if (o == this) {
            return true;
        } else if (!(o instanceof TenderVO)) {
            return false;
        } else {
            TenderVO other = (TenderVO)o;
            if (!other.canEqual(this)) {
                return false;
            } else if (Double.compare(this.getPrice(), other.getPrice()) != 0) {
                return false;
            } else if (this.getProvidedAmount() != other.getProvidedAmount()) {
                return false;
            } else if (this.getUnprovidedAmount() != other.getUnprovidedAmount()) {
                return false;
            } else {
                Object this$tenderCallNumber = this.getTenderCallNumber();
                Object other$tenderCallNumber = other.getTenderCallNumber();
                if (this$tenderCallNumber == null) {
                    if (other$tenderCallNumber != null) {
                        return false;
                    }
                } else if (!this$tenderCallNumber.equals(other$tenderCallNumber)) {
                    return false;
                }

                Object this$tenderCallTitle = this.getTenderCallTitle();
                Object other$tenderCallTitle = other.getTenderCallTitle();
                if (this$tenderCallTitle == null) {
                    if (other$tenderCallTitle != null) {
                        return false;
                    }
                } else if (!this$tenderCallTitle.equals(other$tenderCallTitle)) {
                    return false;
                }

                label76: {
                    Object this$startTime = this.getStartTime();
                    Object other$startTime = other.getStartTime();
                    if (this$startTime == null) {
                        if (other$startTime == null) {
                            break label76;
                        }
                    } else if (this$startTime.equals(other$startTime)) {
                        break label76;
                    }

                    return false;
                }

                Object this$endTime = this.getEndTime();
                Object other$endTime = other.getEndTime();
                if (this$endTime == null) {
                    if (other$endTime != null) {
                        return false;
                    }
                } else if (!this$endTime.equals(other$endTime)) {
                    return false;
                }

                Object this$status = this.getStatus();
                Object other$status = other.getStatus();
                if (this$status == null) {
                    if (other$status != null) {
                        return false;
                    }
                } else if (!this$status.equals(other$status)) {
                    return false;
                }

                Object this$goodsName = this.getGoodsName();
                Object other$goodsName = other.getGoodsName();
                if (this$goodsName == null) {
                    if (other$goodsName != null) {
                        return false;
                    }
                } else if (!this$goodsName.equals(other$goodsName)) {
                    return false;
                }

                return true;
            }
        }
    }

    protected boolean canEqual(Object other) {
        return other instanceof TenderVO;
    }


    public String toString() {
        String var10000 = this.getTenderCallNumber();
        return "TenderVO(tenderCallNumber=" + var10000 + ", price=" + this.getPrice() + ", providedAmount=" + this.getProvidedAmount() + ", unprovidedAmount=" + this.getUnprovidedAmount() + ", tenderCallTitle=" + this.getTenderCallTitle() + ", startTime=" + this.getStartTime() + ", endTime=" + this.getEndTime() + ", status=" + this.getStatus() + ", goodsName=" + this.getGoodsName() + ")";
    }
}
